<?php
require_once '../../vendor/autoload.php';

//$obj = new \Harvey\Toolsbox\library\Hashids\Hashids;
//$result1 = $obj->encode('00123456');
$result1 = \Harvey\Toolsbox\library\Hashids\HashidsHelper::encodeHex('asdsad',8);
echo '加密  ===> ';
var_dump($result1);
$result2 = \Harvey\Toolsbox\library\Hashids\HashidsHelper::decodeHex($result1);

echo '解密  ===> ';
var_dump($result2);